package net.xdclass.user.feign;

import io.swagger.annotations.ApiParam;
import net.xdclass.common.JsonData;
import net.xdclass.user.request.GrantCouponRequest;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 优惠券远程接口
 */
@FeignClient(name = "xdclass-coupon-service")
public interface CouponFeignClient {
    /**
     * 新用户注册发放优惠券
     * @param request
     * @return
     */
    @PostMapping("/api/coupon/v1/user")
    public JsonData grantCouponForNewUser(@RequestBody GrantCouponRequest request);
}
